package java8_28.oop.Javatest_2;

public class Oblong extends Figure{
    private double a,b;

    public Oblong(double a, double b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public double area() {
      return a*b;
    }

    @Override
    public double girth() {
        return (a+b)*2;
    }

    @Override
    public void show() {
        System.out.println("这个长方形");
    }
}
